home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Very Best of Atari Inside
/
The Very Best of Atari Inside 1.iso
/
sharew
/
textvera.rb
/
7up
/
calclock
/
spool.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-08-27
|
717b
|
32 lines
#include <aes.h>
#include <string.h>
int msgbuf[8];
char filename[64];
int main(int argc, char *argv[])
{
int i,gl_apid,acc_id,msgbuf[8];
gl_apid=appl_init();
if((acc_id=appl_find("CALCLOCK"))>=0 && argc>1)
{
for(i=1; i<argc; i++)
{
strcpy(filename,argv[i]);
shel_find(filename);
strupr(filename);
msgbuf[0]=0x4711;
msgbuf[1]=gl_apid;
msgbuf[3]=(unsigned int)((long)filename >> 16);
msgbuf[4]=(unsigned int)((long)filename & 0xffff);
msgbuf[6]=1;
msgbuf[7]=0;
appl_write(acc_id,16,msgbuf);
evnt_mesag(msgbuf);
}
}
appl_exit();
return(argc-1);
}